import request from "@/utils/axios";

// 获取统计数据列表
export function statisticStats(data) {
    return request({
        path: "/node/statistic/stats",
        method: "post",
        data
    });
}

// 获取产品列表
export function statisticProducts(data) {
    return request({
        path: "/node/statistic/products",
        method: "post",
        data
    });
}

// // 获取统计概览
// export function statisticOverview(data) {
//     return request({
//         path: "/node/statistic/overview",
//         method: "post",
//         data
//     });
// }
export function statisticOverview(data) {
    return request({
        path: "/node/statistic/statisticOverview",
        data,
    });
}
// 手动执行统计任务
export function statisticExecuteStats(data) {
    return request({
        path: "/node/statistic/execute-stats",
        method: "post",
        data
    });
}

// 执行历史数据统计
export function statisticExecuteHistorical(data) {
    return request({
        path: "/node/statistic/execute-historical",
        method: "post",
        data
    });
}

// 获取任务状态
export function statisticJobStatus(data = {}) {
    return request({
        path: "/node/statistic/job-status",
        method: "post",
        data
    });
}

// 测试接口
export function statisticTest(data) {
    return request({
        path: "/node/statistic/test",
        method: "post",
        data
    });
}
